home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / SNNSV32.ZIP / SNNSv3.2 / xgui / sources / ui_key.ph < prev    next >
Encoding:
Text File  |  1994-04-25  |  2.7 KB  |  84 lines

  1. /*****************************************************************************
  2.   FILE           : ui_key.ph
  3.   SHORTNAME      : key.h
  4.   SNNS VERSION   : 3.2
  5.  
  6.   PURPOSE        : Header file of correspondent '.c' file
  7.   NOTES          :
  8.  
  9.   AUTHOR         : Tilman Sommer
  10.   DATE           : 6.6.1990
  11.  
  12.   CHANGED BY     :
  13.   IDENTIFICATION : @(#)ui_key.ph    1.8 3/2/94
  14.   SCCS VERSION   : 1.8
  15.   LAST CHANGE    : 3/2/94
  16.  
  17.              Copyright (c) 1990-1994  SNNS Group, IPVR, Univ. Stuttgart, FRG
  18.              
  19. ******************************************************************************/
  20.  
  21.  
  22. #ifndef _UI_KEY_DEFINED_
  23. #define _UI_KEY_DEFINED_
  24.  
  25.  
  26. /* begin global definition section */
  27.  
  28.  
  29. void ui_key_popMenu (struct Ui_DisplayType *displayPtr);
  30. void ui_key_init (void);
  31. void ui_can_KEventProc (Widget w, struct Ui_DisplayType *displayPtr, 
  32.                 XEvent *event);
  33.  
  34.  
  35. StateType  ui_key_currentState = UI_START_STATE, /* current state of automat */
  36.         ui_key_returnUnitState;  /* dito from state UNIT */
  37.  
  38. struct PosType  ui_key_eventPos;     /* position of current event */
  39. int             ui_key_unitNo;       /* unit at this position, else ZERO */
  40.                 /* current key event */
  41. Bool              ui_safetyFlg = FALSE; /* safety on of off */
  42. FlagType          ui_key_linksToHandle; /* which links are to handle:
  43.                                            UI_ALL (input and output)
  44.                                            UI_INPUT UI_OUTPUT UI_NONE */
  45. FlagType          ui_key_action; /* used for MOVE and COPY to tell the
  46.                                     mouse event handler the selected action */
  47. Bool            ui_outlineActive = FALSE; /* waiting for a 
  48.                         destination position */
  49.  
  50.  
  51. /* end global definition section */
  52.  
  53.  
  54. /* begin private definition section */
  55.  
  56.  
  57. static void ui_can_setBusyCursor(void); /* not implemented */
  58. static void ui_can_setNormalCursor(void); /* not implemented */
  59. static void ui_key_abortOutlineAction (void);
  60. static void ui_key_startOutlineAction (void);
  61. static void ui_key_automata (struct Ui_DisplayType *displayPtr, 
  62.                 struct PosType eventPixPos, char key); 
  63. static void ui_key_menuCallback (Widget w, int key, caddr_t call_data);
  64. static void ui_key_menuPopdownCallback (Widget w, caddr_t client_data, 
  65.                 caddr_t call_data);
  66.  
  67.  
  68. static char  ui_key_currentKey =  UI_ASCII_BLANK; /* last key pressed */
  69. static char *ui_commands[18][13]; /* [state][command] */
  70. static Widget ui_key_menu;  /* menu with all possibilities to 
  71.                     continue the sequenz */
  72. static StateType  ui_key_returnFlagState,  /* state to return from state FLAG */
  73.                 ui_key_returnLinkState;  /* dito from state LINK */
  74.  
  75.  
  76. /* end private definition section */
  77.  
  78.  
  79. #endif /* _UI_KEY_DEFINED_ */
  80.  
  81.  
  82. /* end of file */
  83. /* lines: 28 */
  84.